import time
from PyQt5.QtCore import pyqtSignal, QObject
from source.event import _event

mouse_map = {'mouse left down': 'mouse right down', 'mouse left up': 'mouse right up',
             'mouse right down': 'mouse left down', 'mouse right up': 'mouse left up'}

freeze = -1
mouse_interval = 150


def current_ts():
    return int(time.time() * 1000)


class RecordSignal(QObject):
    event_signal = pyqtSignal(_event)
